package com.dongdongshop.service;

import com.dongdongshop.pojo.TbItemCat;

import java.util.List;

public interface TicatService {


    //查询全部
    List<TbItemCat> getll(Long id);


    //增加回显
    TbItemCat addteat(Long id);

    //增加
    int addbaocun(TbItemCat tc);

    //修改回显
    TbItemCat updatecat(Long id);

    //修改
    int updatebao(TbItemCat tc);

    //删除
    int deletebyid(Long id);

    //根据主键查询
    TbItemCat byid(Long parentId);

    //删除2删除父级
    int deletearr(List<Long> parentid);



    //三级联动
    List<TbItemCat> getsanji(Long parentId);

    //根据id查询此条记录
    TbItemCat getbyid(Long id);
}
